package com.zzy;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.profile.DefaultProfile;
import org.jetbrains.annotations.NotNull;

/**
 * @Author  KAZU
 * @Date    2023/1/16 10:56
 * @Version 1.0
 */
 @SuppressWarnings({"all"})
public class InitObject {
	//填入AccessKey信息
	public static @NotNull DefaultAcsClient initVodClient(String accessKeyId, String accessKeySecret) throws ClientException {
		String regionId = "cn-shanghai";  // 点播服务接入地域
		DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
		DefaultAcsClient client = new DefaultAcsClient(profile);
		return client;
	}
}
